#!/bin/bash
set -e
set -u
#trap read debug

TestName="$(basename "$(pwd)")"

export TestName
export estat

#shellcheck source=../environment.in
. ./environment
#shellcheck source=../scripts/functions
. "${rscripts}"/functions
#shellcheck source=../scripts/reload_test_functions
. "${rscripts}"/reload_test_functions


bconsole_command_file="$tmp/bconsole_reload_command"
console_logfile="$tmp/console.log"

director_debug_level=""
#director_debug_level="-d 200"


############################################
start_test
############################################

stop_director #be sure no director is started

${rscripts}/cleanup
${rscripts}/setup

start_director

#reload unmodified config
test_reload_will_not_crash_director

stop_director

############################################
end_test
############################################

